package com.dengke.springmybatis.dao;

import java.util.List;

import com.dengke.springmybatis.pojo.Country;


public interface CountryMapper {
    //long countByExample(CountryExample example);

    //int deleteByExample(CountryExample example);

    int deleteByPrimaryKey(String code);

    int insert(Country record);

    int insertSelective(Country record);

   // List<Country> selectByExample(CountryExample example);

    Country selectByPrimaryKey(String code);

    //int updateByExampleSelective(@Param("record") Country record, @Param("example") CountryExample example);

   // int updateByExample(@Param("record") Country record, @Param("example") CountryExample example);

    int updateByPrimaryKeySelective(Country record);

    int updateByPrimaryKey(Country record);
    
    //获取国家及城市的信息
    List<Country> selectCityOfCountry();
}